import unittest
from utils.convertor import Convertor


class ConvertorTest(unittest.TestCase):
    def test_int_to_str(self):
        self.assertEqual(Convertor.int_to_str(1234567890), '1234567890')

    def test_float_to_str(self):
        self.assertEqual(Convertor.float_to_str(1234.567890), '1234.56789')

    def test_str_to_int(self):
        self.assertEqual(Convertor.str_to_int("1234567890"), 1234567890)

    def test_str_to_float(self):
        self.assertEqual(Convertor.str_to_float('1234.56789'), 1234.567890)
